$(function(){
    var guanwang={
        data:{
            Eng_month:["January" ,"February", "March", "April" ,"May" ,"June","July","August","September","October","November","December"]
        },
        event:function () {

        },
        init:function () {
            var that=this;
            var id=location.href.match(/recrId=(\d+)/)&&location.href.match(/recrId=(\d+)/)[1];
            if(id){
                JsonP({
                    url:guanwangID+"index.php?s=home/Hiring/listHiringQueryInfo",
                    data:{
                        info_id :id
                    },
                    success:function (res) {
                        console.log(res);
                        if(res.resStatus===1){
                           $(".recr_detial_h span").text(res.data[0].position);
                           $(".anli_detial_wrap>p").empty().append('<a href="/">首页</a> > <a href="recr.html">加入盛铭吉</a> > '+res.data[0].position);
                           var body_string='<div class="row">' +
                               '                  <div class="col-xs-12 col-sm-4">' +
                               '                      <div class="recr_detial_item"><p>工作地点：<span>'+res.data[0].place+'</span></p></div>' +
                               '                  </div>' +
                               '                  <div class="col-xs-12 col-sm-4">' +
                               '                      <div class="recr_detial_item"><p>工作经验：<span>'+res.data[0].experience+'</span></p></div>' +
                               '                  </div>' +
                               '                  <div class="col-xs-12 col-sm-4">' +
                               '                      <div class="recr_detial_item"><p>学&nbsp &nbsp &nbsp &nbsp历：<span>'+res.data[0].education+'</span></p></div>' +
                               '                  </div>' +
                               '                  <div class="col-xs-12 col-sm-4">' +
                               '                      <div class="recr_detial_item"><p>工作类型：<span>'+res.data[0].type+'</span></p></div>' +
                               '                  </div>' +
                               '                  <div class="col-xs-12 col-sm-4">' +
                               '                      <div class="recr_detial_item"><p>招聘人数： <span>'+res.data[0].number+'</span></p></div>' +
                               '                  </div>' +
                               '                  <div class="col-xs-12 col-sm-4">' +
                               '                      <div class="recr_detial_item"><p>发布时间：<span>'+res.data[0].time+'</span> </p></div>' +
                               '                  </div>' +
                               '             </div>';

                           $(".recr_detial_b").empty().append(body_string);
                           var um_content=$(".recr_detial_c").append(res.data[0].content).text();
                            $(".recr_detial_c").empty().append(um_content);
                        }
                    }
                });
            }


        }
    };

    guanwang.init();
});